package com.lucky.common.util;

import javax.servlet.http.HttpSession;

public class SessionUtil {

    public static <T> T getAttribute(HttpSession session, String key){
        return (T) session.getAttribute(key);
    }

    public static void setAttribute(HttpSession session, String key, Object value){
        session.setAttribute(key, value);
    }

    public static void removeAttribute(HttpSession session, String key, Object value){
        session.removeAttribute(key);
    }
}
